package com.example.prjbackend.service;

import com.example.prjbackend.domain.Bumen;
import com.example.prjbackend.mapper.BumenMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BumenService {
    @Autowired
    BumenMapper bumenMapper;
    public int add(Bumen bumen) {
        return bumenMapper.insert(bumen);
    }

    public List<Bumen> list(Bumen bumen) {
        return bumenMapper.list(bumen);
    }

    public int edit(Bumen bumen) {
       return bumenMapper.edit(bumen);
    }


    public int delete(Long[] ids) {
        return bumenMapper.delete(ids);
    }
}
